<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>管理员信息列表</title>
<link rel="stylesheet" href="framework/css/form.css" type="text/css">
<link rel="stylesheet" href="framework/css/style.css" type="text/css">
</head>
<body>
	<c:if test="${empty requestScope.pagebean}">
		<c:redirect url="listAdminPrepare_acc" />
	</c:if>
	<h2>管理员信息列表</h2>
	<p align="center">
	<form action="searchAdmin_acc" method="post" style="width: 30%;border: 0;">
	<label style="float: none; padding: 0px;">输入管理员名称：</label><input type="text" name="admin.name" />
					<input type="submit" value="搜索" />
	</form>

	<table width="100%" border="0" align="center" cellpadding="0"
		cellspacing="0">
		<tr>
			<td align="center"><span style="color: #CE3C4F">${requestScope.message}</span>
				<table width="100%" class="datalist" border="1">
					<tr bgcolor="d3eaef">
						<td>用户名</td>
						<td>密码</td>
						<td>手机号码</td>
						<td>角色</td>
						<td width="6%"></td>
					</tr>
					<c:forEach var="admin" items="${request.pagebean.list}">
						<tr height="35px">
							<td><a href="editAdminPrepare_acc?admin.id=${admin.id}">${admin.name}</a></td>
							<td>${admin.pass}</td>
							<td>${admin.phone}</td>
							<td>${admin.role.roleName}</td>
							<td>
								<form action="removeAdmin_acc" style="border: 0;">
									<input type="hidden" name="admin.id" value="${admin.id}" /> <input
										type="hidden" name="pageNo" value="${pagebean.pageNo}" /> <input
										type="submit" value="删除" onclick="return confirm('确定删除吗？')">
								</form>
							</td>
						</tr>
					</c:forEach>
				</table></td>
		</tr>
	</table>
	<br> ${pagebean.pageToolBar }
	<br>
</body>
</html>